﻿/*
**  Proxy类
*/
if (!$.Engine.Collision || typeof $.Engine.Collision === "undefined") $.Engine.Collision = {};
$.Engine.Collision.Proxy = function () {
  this.lowerBounds = [/*uint*/(0), /*uint*/(0)];
  this.upperBounds = [/*uint*/(0), /*uint*/(0)];
}
Object.extend($.Engine.Collision.Proxy.prototype, {
  GetNext: function () { return this.lowerBounds[0]; },
  SetNext: function (next) { this.lowerBounds[0] = next /*& 0x0000ffff*/; },

  IsValid: function () { return this.overlapCount != $.Engine.Collision.BroadPhase.invalid; },

  lowerBounds: [/*uint*/(0), /*uint*/(0)],
  upperBounds: [/*uint*/(0), /*uint*/(0)],
  overlapCount: 0,
  timeStamp: 0,

  userData: null
});